#include<bits/stdc++.h>
#include<cstdio>
using namespace std;
int n,a[100001],ans=0;
int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
cin>>n;
for(int i=1;i<=n;i++)
{
    cin>>a[i];
}
for(int i=1;i<=n;i++)
{
    for(int j=1;j<=n;j++)
    {
        if(a[i]>a[j])
        {
            ans++;
        }
        break;
    }
}
cout<<n-ans<<endl;
return 0;
}
